/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package agent.teekonna;

import jade.core.Agent;
import jade.util.Logger;
import agent.AgentType;
import agent.teekonna.behaviour.TeekonnaBehaviour;
import agent.teekonna.behaviour.TeekonnaTickerBehaviour;
import agent.util.AgentUtil;

/**
 *
 * @author margus
 */
public class TeekonnaAgent extends Agent {

	private static final Logger LOG = Logger.getJADELogger(TeekonnaAgent.class
			.getName());
	private static final long serialVersionUID = 1L;

	@Override
    protected void setup() {
        super.setup();
		AgentUtil.registerByName(this, AgentType.TEEKOND);
        addBehaviour(new TeekonnaBehaviour(this));
		addBehaviour(new TeekonnaTickerBehaviour(this, 3000L));
    }

    @Override
    protected void takeDown() {
		LOG.info("Physician-agent " + getAID().getName() + " terminated");
    }
}
